﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using WinnerCMS.BLL;

#endregion

namespace WinnerCMS.WebUI.Controllers
{
    public class MessageController : ApiController
    {
        private static readonly MessageManage BLL = new MessageManage();

        /// <summary>
        ///     检查是否有消息
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public int Check()
        {
            return BLL.CountNoRead();
        }
    }
}